package com.johnny.xia.jsr;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

@Getter
@Setter
public class OrderLine implements Serializable {

    private static final long serialVersionUID = 2050208007922197794L;

    @NotNull(message="sku 不能为空")
    private Sku sku;

    @Min(value=1,message="数量不能小于1")
    private int qty;

    private BigDecimal totalPrice;


}
